<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFailedJobsTable extends Migration
{
  /**
   * Run the migrations.
   */
  public function up(): void
  {
    Schema::create('failed_jobs', function (Blueprint $table) {
      $table->increments('id');
      $table->text('connection');
      $table->text('queue');
      $table->longText('payload');
      $table->timestamp('failed_at');
    });
  }

  /**
   * Reverse the migrations.
   */
  public function down(): void
  {
    Schema::dropIfExists('failed_jobs');
  }
}
